{% extends "base.html" %}
{% block head %}
    {{ block.super }}
    <script type="text/javascript">
        $(function() {
            {% if provider == 'twitter' %}
                window.opener.open_twitter_box('{{ id }}');
            {% endif %}
            {% if provider == 'facebook' %}
                window.opener.open_facebook_box('{{ id }}');
            {% endif %}
            self.close();
        });
    </script>
{% endblock %}
